package pl.bizuteria.sklep.admin.client.activity.earing;

import pl.bizuteria.sklep.admin.client.activity.product.IRequestMixin;
import pl.bizuteria.sklep.api.shared.proxy.EaringProxy;
import pl.bizuteria.sklep.api.shared.request.EaringRequest;

import com.google.web.bindery.requestfactory.shared.RequestContext;

public class EaringRequestMixin implements IRequestMixin<EaringProxy> {
	
	
	private final EaringRequest request;


	public EaringRequestMixin(EaringRequest request) {
		super();
		this.request = request;
	}


	public RequestContext createSaveRequest(EaringProxy proxy) {
		request.persist(proxy);
		return request;
	}
	
}
